<?php

$urlSkype = 'http://download.skype.com/share/skypebuttons/js/skypeCheck.js';
Yii::app()->clientScript->registerScriptFile($urlSkype);
?>

<div class="pager_1_top"></div>
<div class="pager_1_repeat">
    <div class="navigator nav_bg1">
        <span class="icon_1 icon_13"></span>
        <span class="icon_2 icon_21"></span>

        <h3 class="color_1">
            Liên Hệ
        </h3>
    </div>

    <div class="box_content_1 color_6">
        <?php
        if (isset($model->summary)) {
            echo $model->summary;
        }
        ?>
    </div>
</div>
<div class="pager_1_bottom"></div>

<div class="pager_1_top"></div>
<div class="pager_1_repeat">
    <div class="navigator nav_bg2">
        <span class="icon_1 icon_11"></span>
        <span class="icon_2 icon_22"></span>

        <h3 class="color_3">
            Hỗ Trợ Trực Tuyến
        </h3>
    </div>
  
    <div class="box_content_1 color_6">
    <?php
        if (isset($model->info) && is_array($model->info)) {
            $info      = $model->info;
            $maxRepeat = count($info);

            for ($i = 0; $i < $maxRepeat; $i++) {
                echo CHtml::openTag('p');

                echo '<b>' . $info[$i]['full_name'] . '</b><br/>';
                echo 'Phone: ' 
                    . $info[$i]['phone'] . '<br/>';
                echo 'Email: ' 
                    . CHtml::link($info[$i]['email'], 'mailto:' . $info[$i]['email'])
                    . '<br/>';
                $this->widget('ext.mylib.helpers.skypeStatus', array(
                    'nickname' => $info[$i]['skype'],
                ));

                echo CHtml::closeTag('p');
                echo '<div class="clear"></div>';
            }
        }
        
        //back link
        $url = Yii::app()->user->returnUrl;
        echo CHtml::link('Trở về trang trước', $url, array(
            'class' => 'link_back',
        ));
    ?>
    <div class="clear"></div>
    </div>
</div>
<div class="pager_1_bottom"></div>